package com.zzjson.test.model;

import com.zzjson.test.converter.TestConverter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年08月16日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@Component
public class ConverterService {

	@Autowired
	private TestConverter testConverter;

	public void test() {
		Car car = new Car();
		car.setName("dddd");
		CarDTO carDTO = testConverter.carToCarDto(car);
		System.out.println(carDTO);
	}
}